﻿using Microsoft.Practices.Prism.Commands;
using Microsoft.Practices.Prism.Mvvm;
using Microsoft.Practices.Prism.Mvvm.Interfaces;
using Microsoft.Practices.Prism.StoreApps;
using Microsoft.Practices.Prism.StoreApps.Interfaces;
using Microsoft.Practices.Unity;

namespace NavigationApp.ViewModels
{
    public class MainPageViewModel : ViewModel
    {
        [Dependency]
        public INavigationService NavigationService { get; set; }

        public DelegateCommand NavigateCommand { get; private set; }

        public MainPageViewModel()
        {
            this.NavigateCommand = new DelegateCommand(() => this.NavigationService.Navigate("Next", "from MainPage"));
        }
    }
}
